package com.example.entity;

import lombok.Data;

import java.util.List;


@Data
//分页查询的JavaBean
public class Page<T> {

    //总记录数
    private  int total;

    //当前页数据
    private List<T> records;



    public Page() {
    }

    public Page(int total, List<T> records) {
        this.total = total;
        this.records = records;
    }



}

